<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template header}
	<div id="app">
    	<div style="background: #EDECF3; width: 100%; height: 100%;">
           	<header class="top">
                <span>{$pageTitle}</span> 
                <a href="{U('member/security')}" class="iconfont back"></a> 
           	</header> 
           	<div data-v-6cb1ea77="" class="main" s="[object Object]">
           		<form action="{U('member/verifysafe')}" method="post" id="resetsafe">
           			<input type="hidden" name="operation" value="resetsafe"/>
                    <table data-v-6cb1ea77="">
                     	<tbody data-v-6cb1ea77="">
                          	<tr data-v-6cb1ea77="" style="height: 45px; line-height: 45px; font-size: 16px;">
                               	<td data-v-6cb1ea77="">安全密码</td> 
                               	<td data-v-6cb1ea77=""><input data-v-6cb1ea77="" type="password" tag="安全密码" placeholder="请输入安全密码" class="va16" id="password" name="password" /></td>
                          	</tr> 
                          	<tr data-v-6cb1ea77="" style="height: 45px; line-height: 45px; font-size: 16px;">
                               	<td data-v-6cb1ea77="">确认密码</td> 
                               	<td data-v-6cb1ea77=""><input data-v-6cb1ea77="" type="password" tag="确认密码" placeholder="请再次输入密码" class="va16" id="checkpassword" name="checkpassword" /></td>
                          	</tr> 
                          	{if $error}
                          		<tr data-v-6cb1ea77="" style="height: 45px; line-height: 45px; font-size: 16px;">
                                   	<td data-v-6cb1ea77="" colspan="2">
                                   		<font style="font-size: 12px; color: red; padding-left: 20px;">{$error}</font>
                                   	</td> 
                              	</tr> 
                              	<tr data-v-6cb1ea77=""></tr>
                          	{/if}
                          	<tr data-v-6cb1ea77=""></tr>
                     	</tbody>
                    </table> 
                </form>
                <div data-v-6cb1ea77="" class="loginBtn BTN">
                 	<a data-v-6cb1ea77="" class="tag_resetpwd">确定</a>
                </div>
                <div data-v-6cb1ea77="" class="tips">安全密码用于提现、绑定银行卡等操作，可保障资金安全。</div>
           	</div> 
    	</div>
	 </div>
    <script>
    	$('.tag_resetpwd').on('click', '', function(){
    		if(!$('#password').val()){
    			layer.alert('请输入安全密码');
    			return;
    		}
    		if(!$('#checkpassword').val()){
    			layer.alert('请输入确认密码');
    			return;
    		}
    		if($('#checkpassword').val() != $('#password').val()){
    			layer.alert('两次密码不一致');
    			return;
    		}
    		
    		$('#resetsafe').submit();
    	})
    </script>
    {template footer}
</html>